package com.yswee.mallnavi.context;

import com.yswee.framework.utils.PackageUtils;
import com.yswee.mallnavi.Application;

public class ContextConstant {

	public static final String DEVICETYPE = "android";
	public static final String VERSION = PackageUtils.getPackageVersionName(Application.get());
	public static final String ACTIONTOKEN = "319124f0-96c7-8f98-4da7-3a1968b8fbbe";
	public static final boolean IS_LANDSCAPE = PackageUtils.getApplicationMetadata("SCREENORIENTATION").equals("landscape");
	public static String SERIALNO = "";

	public static final String RESPONSECODE_SUCC = "0";
	public static final String RESPONSECODE_FAIL = "1";
	public static final String RESPONSECODE_RELOGIN = "2";

	public static final int REQUESTCODE_PHOTOCHOOSER = 1001;
	public static final int REQUESTCODE_CATEGORYCHOOSER = 1002;
	public static final int REQUESTCODE_BACKREFRESH = 1003;
	public static final int REQUESTCODE_PERMISSION = 1213;
	
	public static final String INTENT_ID = "id";
	public static final String INTENT_DATA = "data";
	public static final String INTENT_INDEX = "index";
	public static final String INTENT_TYPE = "type";
	public static final String INTENT_SELECT = "select";
	public static final String INTENT_LOCATION_LAT = "location_lat";
	public static final String INTENT_LOCATION_LON = "location_lon";

	public static int getOrientationType() {
		return IS_LANDSCAPE ? 1 : 2;
	}
	
}
